package com.rljk.exception;

import com.rljk.common.result.CodeMsg;

/**
 * Author:   YASUO
 * Date:     2018/7/7 17:01
 * Description:
 */
public class GlobalException extends RuntimeException {

    private CodeMsg msg;

    public GlobalException(CodeMsg msg) {
        super(msg.toString());
        this.msg = msg;
    }

    public CodeMsg getMsg(){
        return msg;
    }
}
